package com.bjpowernode.mapper;

import java.util.List;

import com.bjpowernode.common.DataScope;
import com.bjpowernode.model.TActivity;
import com.bjpowernode.query.ActivityQuery;

public interface TActivityMapper {

	int deleteByPrimaryKey(Integer id);

	int insert(TActivity record);

	int insertSelective(TActivity record);

	TActivity selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(TActivity record);

	int updateByPrimaryKey(TActivity record);

	/**
	 * 分页查询市场活动
	 * 
	 * @param baseQuery     数据权限
	 * @param activityQuery 搜索条件
	 * @return 市场活动集合
	 */
	@DataScope(tableAlias = "ta", tableField = "owner_id")
	List<TActivity> selectActivitysByPage(ActivityQuery activityQuery);
}